package com.billing.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.billing.persistance.dao.IGenericDAO;
import com.billing.persistance.entities.TechUser;

@Service
public class TechUserServiceImpl implements ITechUserService{

    @Autowired
    @Qualifier(value="techUserDAO")
    private IGenericDAO<TechUser, Long> userDAO;
    
    @Transactional(readOnly = true) 
    public boolean authenticateUser(String login, String password) {

        // FIXME
        return true;
    }

    
    @Transactional
    public void createTechUser(TechUser user) {
        userDAO.create(user);
    }

}

